import pyDes
import base64
import Cookie
from datetime import *
import time
import sys
k =pyDes.des('19246904', pyDes.ECB,"", pad=None, padmode=pyDes.PAD_PKCS5)
d = k.encrypt('creamyyang')
value = base64.b64encode(d)
print value[0]

C = Cookie.SimpleCookie();

C["fig"] = "newton"
C["sugar"] = "Xqda0rnIGpkLJ4OMYqw=="
C["fig"]['domain']='wsd.com'
C["fig"]['path'] = '/'
C['time'] =  '%d' % (time.time() * 1000)
print C
print C["sugar"].value
B = Cookie.SimpleCookie();
B.load('Set-Cookie: sugar=Xqda0rnIGpkLJ4OMYqw==');
print B;
print B["sugar"].value
d = datetime.now()

print "%d" % (time.time() * 1000)
print sys.argv[0]
